package xuexi;

interface IStudentInfo{
    public abstract String getInfo();
}
interface IWorkerInfo{
    public abstract Boolean getWorkInfo();
}
class Testimpl implements IStudentInfo,IWorkerInfo{

    @Override
    public String getInfo() {
        if (this.getWorkInfo()) {
            return "张三是好学生！";
        }
        return "没有连接1";
    }

    @Override
    public Boolean getWorkInfo() {
        return true;
    }
}
public class Interfacetest1 {
    public static void main(String[] args){
        Testimpl test=new Testimpl();
        System.out.println(test.getInfo());
    }
}
